package com.banmoon.decorator.optimize;

import cn.hutool.core.util.StrUtil;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public abstract class Drink {

    private Float price;

    private String name;

    public String getDesc(){
        return StrUtil.format("{} {}元", name, price);
    };

    public abstract Float cost();

}
